package com.cityeye.search;

public class SearchCriteria {
	public static final int VT_INT = 0;
	public static final int VT_BOOL = 1;
	public static final int VT_CHAR = 3;
	public static final int VT_STRING = 2;
	public static final int VT_FLOAT = 4;
	public static final int VT_DATETIME = 5;

	public static final int VT_ENTITY = 100;

	private String key;
	private int valueType;
	private Object[] valueRange;

	public SearchCriteria(String key, int valueType, Object[] validValues) {
		this.key = key;
		this.valueType = valueType;
		this.valueRange = validValues;
	}

	public SearchCriteria(String key, int valueType) {
		this.key = key;
		this.valueType = valueType;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public int getValueType() {
		return valueType;
	}

	public void setValueType(int valueType) {
		this.valueType = valueType;
	}

	public Object[] getValueRange() {
		return valueRange;
	}

	public void setValueRange(Object[] valueRange) {
		this.valueRange = valueRange;
	}

	public String toString() {
		return "SearchCriteria: key(" + key + "), type(" + valueType
				+ ");  ValueRange(" + valueRange + ").";
	}
}
